<?php
/**
 * 体检预约-订单
 *
 * User: kaikaic
 * Date: 2018/10/28
 * Time: 21:29
 */

namespace app\exam\service;

use service\BasicService;
use think\Db;

class OrderService extends BasicService {

    public function init() {
        $this->dataTable = ['ExamOrder', 'ExamOrderPay'];
    }

    /**
     * 订单-已支付+已参检
     */
    public function checkOrderFinished($order) {
        return $order['order_status'] == 2 && $order['pay_status'] == 2;
    }
}